package com.spica.spicaschool.bean

import android.os.Parcelable
import com.squareup.moshi.JsonClass
import kotlinx.parcelize.Parcelize

@Parcelize
@JsonClass(generateAdapter = true)
class PageEntity constructor(
    var count: Int = 5,
    var currentPage: Int = 0,
    var fromIndex: Int? = 0,
    var nextPage: Boolean = true,
    var pageSize: Int = 5
) : Parcelable {

    override fun toString(): String {
        return "PageEntity{" +
            "count=" + count +
            ", currentPage=" + currentPage +
            ", fromIndex=" + fromIndex +
            ", nextPage=" + nextPage +
            ", pageSize=" + pageSize +
            '}'
    }
}
